<template>
  <p>{{ num }}</p>
  <hr />
  <div>
    <p>this相关</p>
    {{ Datass }}
  </div>
</template>
<script>
import { ref, getCurrentInstance } from "vue";
export default {
  setup() {
    // 获取到当前this的api
    const num = ref(3);
    const instance = getCurrentInstance();
    console.log(instance);

    return { num, instance };
  },
};
</script>
